//
//  NSString+Encrypt.h
//  Test
//
//  Created by lizq on 15/8/18.
//  Copyright (c) 2015年 lizq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Encrypt)

- (NSInteger)UTF8Length;

//MD5 Sring
- (NSString *)md5String;
//Base64 Encode
- (NSString *)base64Encode;
//Base64 Decode
- (NSString *)base64Decode;
//AES 加密
- (NSString *)aesEncryptWithKey:(NSString *)key;
//AES 解密
- (NSString *)aesDecryptWithKey:(NSString *)key;
//DES 加密
- (NSString *)desEncryptWithKey:(NSString *)key;
//DES 解密
- (NSString *)desDecryptWithKey:(NSString *)key;
@end
